package util;

import java.util.HashMap;

import org.yaml.snakeyaml.Yaml;

import config.DBOption;

public class TryYaml {
	public static void main(String[] args) {
		DBOption[] dbs = new DBOption[1];
		dbs[0] = new DBOption();
		dbs[0].dbname = "sdf";
		dbs[0].lookuptableclass = "dfg";
		dbs[0].partitionclass = "dfg";
		dbs[0].dhtring = new HashMap<String, String>();
		dbs[0].dhtring.put("test", "tset");
		Yaml yaml = new Yaml();
		System.out.println(yaml.dump(dbs));
	}
}
